package com.yingsheng.bi.hks.feign.client;

import com.yingsheng.bi.hks.basic.FeignConst;
import com.yingsheng.bi.hks.dto.categories.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 用户地址路由
 */
@FeignClient(contextId = FeignConst.HKS_CATEGORIES, name = FeignConst.SERVICE_NAME)
@Api(tags = "分类信息", value = "分类信息")
public interface CategoriesFeignClient {

    @ApiOperation(httpMethod = "POST", value = "分类信息新增")
    @RequestMapping(value = "/categoriesMgmt/categoriesAdd")
    CategoriesAddRes add(@RequestBody CategoriesAddReq req);

    @ApiOperation(httpMethod = "POST", value = "分类信息修改")
    @RequestMapping(value = "/categoriesMgmt/categoriesMod")
    CategoriesModRes mod(@RequestBody CategoriesModReq req);

    @ApiOperation(httpMethod = "POST", value = "分类信息查询")
    @RequestMapping(value = "/categoriesMgmt/categoriesQry")
    CategoriesQryRes qry(@RequestBody CategoriesQryReq req);

    @ApiOperation(httpMethod = "POST", value = "分类信息删除")
    @RequestMapping(value = "/categoriesMgmt/categoriesDel")
    CategoriesDelRes del(@RequestBody CategoriesDelReq req);
}
